using System;
using System.Collections.Generic;

public static class LiquidTypes
{
	private static List<LiquidType> fizzyLiquids = new List<LiquidType>(new LiquidType[6]
	{
		LiquidType.SevenUp,
		LiquidType.Beer,
		LiquidType.BeerDark,
		LiquidType.Champagne,
		LiquidType.Cola,
		LiquidType.Mirinda
	});

	public static string GetLiquidName(LiquidType type)
	{
		return type.ToString();
	}

	public static LiquidType GetLiquidType(string name)
	{
		try
		{
			return (LiquidType)Enum.Parse(typeof(LiquidType), name);
		}
		catch (Exception)
		{
			return LiquidType.Null;
		}
	}

	public static bool IsFizzy(LiquidType type)
	{
		return fizzyLiquids.Contains(type);
	}
}
